Testing Web Service Operations |
|
Before you begin this task:
You must have created and published the Web service operations.
Testing Web service operations helps you to know whether a Web service operation works properly or not. It is better to check the functionality of a Web service operation before using it in run time.
Testing is done using a SOAP request. It checks whether the Web service operation generates correct SOAP request and response, and properly tries to send and receive SOAP messages. The feature facilitates composing and editing the SOAP request, if required.
- In Workspace Documents (Explorer), open <solution> > <project> > > , right-click (<Web service operation>) and select Test Web Service Operation. The Operation Test Tool window appears, displaying the SOAP request for that Web service operation.
- Depending upon the data that the request needs to process, enter the values replacing PARAMETER in the SOAP request.
- Click Invoke. The request and response appear in the Result Messages area.
- Click the response message to check if the retrieved details are accurate.
- Click Clear Messages to clear the request and response messages from the Result Messages area.
- Repeat the test with modified parameters, if required.
You have tested the Web service operation.